var mysql = require("mysql");
var config = require("./config");
var pool = mysql.createPool({
    connectionLimit: 10,
    host: config.database.HOST,
    user: config.database.USERNAME,
    password: config.database.PASSWORD,
    database: config.database.DATABASE
})

pool.query("select * from users", (err, res, fields) => {
    if (err) {
        throw err;
    }
    console.log("The results is ", res[0]);
});